import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询预警信息全部
export const alarmWarningList = data => {
    return $get('/alarm/alarmWarning/list', data)
}

// 查询预警信息列表
export const alarmWarningPage = data => {
    return $get('/alarm/alarmWarning/page', data)
}

// 新增预警信息
export const alarmWarningAdd = data => {
    return $post('/alarm/alarmWarning/add', data)
}

// 查询预警信息详情
export const alarmWarningDetail = id => {
    return $get('/alarm/alarmWarning/detail/'+ id)
}

// 更新预警信息
export const alarmWarningUpdate = data => {
    return $post('/alarm/alarmWarning/update', data)
}

// 删除预警信息
export const alarmWarningDelete = id => {
    return $post('/alarm/alarmWarning/delete/'+ id)
}

// 导出预警信息
export const alarmWarningExport = (data,fileName) => {
    return $download('/alarm/alarmWarning/export',data, fileName)
}

// 预警督办
export const orderPush = data => {
  return $post('/collect/sgSupervise/orderPush', data)
}
